Create Setting

Creates a new Setting.

Supply the appropriate Create Request object for either Feature flag or User setting.

Request
Request Body schema: application/json

The setting to create

defaultValue
any

the value that will be taken if no value was passed

name
required
string

the name of the setting

value
any

the value of the setting

valueType
required
string (SettingsValueTypes)
Enum: "boolean" "number" "select" "multi-select" "string" "object" "array"
required
object (SettingScope)
metadata
object or null
settingType
required
string (SettingsTypes)
Enum: "feature_flag" "user_settings"
property name*
additional property
any
Responses
200

Ok

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

post/settings
Request samples
application/json
{
  • "defaultValue": null,
  • "name": "string",
  • "value": null,
  • "valueType": "boolean",
  • "scope": {
    },
  • "metadata": {
    },
  • "settingType": "feature_flag"
}
Response samples
application/json
{
  • "id": "string",
  • "defaultValue": null,
  • "name": "string",
  • "value": null,
  • "valueType": "boolean",
  • "scope": {
    },
  • "metadata": {
    },
  • "settingType": "feature_flag",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "createdBy": "string",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "updatedBy": "string",
  • "expiredAt": "2019-08-24T14:15:22Z",
  • "expired": true
}